<?php

!defined('IN_TIPASK') && exit('Access Denied');

class indexcontrol extends base {

    function indexcontrol(& $get,& $post) {
        $this->base( & $get,& $post);
    }

    function ondefault() {
        $this->load('setting');
		$wordslist = unserialize($this->setting['hot_words']);
        $linklist=$this->cache->load('link','id','displayorder');
        $adlist = unserialize($this->setting['ads']);
        include template('index');
    }

    function onhelp() {
        $this->load('usergroup');
        $usergrouplist = $_ENV['usergroup']->get_list(2);
        include template('help');
    }
}
?>